home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 July / Macworld CD 17.05.iso / Data / Main.dxr / 00024_sounder.ls < prev    next >
Encoding:
Text File  |  2000-02-28  |  688 b   |  35 lines

  1. property enterSound, downSound, upSound
  2.  
  3. on new me
  4.   return me
  5. end
  6.  
  7. on getPropertyDescriptionList me
  8.   d = [:]
  9.   addProp(d, #enterSound, [#default: "wzmo", #format: #string, #comment: "mouseEnter Sound:"])
  10.   addProp(d, #downSound, [#default: "none", #format: #string, #comment: "mouseDown Sound:"])
  11.   addProp(d, #upSound, [#default: "none", #format: #string, #comment: "mouseUp Sound:"])
  12.   return d
  13. end
  14.  
  15. on mouseEnter me
  16.   if enterSound <> "none" then
  17.     puppetSound(enterSound)
  18.   end if
  19.   pass()
  20. end
  21.  
  22. on mouseDown me
  23.   if downSound <> "none" then
  24.     puppetSound(downSound)
  25.   end if
  26.   pass()
  27. end
  28.  
  29. on mouseUp me
  30.   if upSound <> "none" then
  31.     puppetSound(upSound)
  32.   end if
  33.   pass()
  34. end
  35.